﻿using Admin.ApplicationLib.Entities;
using Admin.CommonLib.Models.Role;
using AutoMapper;

namespace Admin.WebApi.Mappers
{
    public class RoleClaimProfile : Profile
    {
        public RoleClaimProfile()
        {
            CreateMap<RoleClaimEntity, RoleClaimResponseDto>()
                .ForMember(desc => desc.Type, opt => opt.MapFrom(src => src.ClaimType))
                .ForMember(desc => desc.Value, opt => opt.MapFrom(src => src.ClaimValue));
        }
    }
}